Learning Virtual Reality by Tony Parisi

Learning Virtual Reality by Tony Parisi

Author:Tony Parisi
Language: eng
Format: epub


Handling Touchpad Events

Virtual reality isn’t only about rendering and camera tracking. We also need to process user input. The Gear VR comes with the touchpad, a great input device built into the side of the HMD. This is going to be our main source of input. Let’s get a feel for how to use it.

Create a new Unity project, and call it UnityGearVRInput. As you did for the first example, import the Unity Integration package into the new project. In the Project pane, open the folder Assets->OVR->Scenes and double-click the scene named Room.

This loads a very simple scene, just a gray box that will be the inside of the room. This example uses the touchpad to rotate the camera within the room. You should be able to see it in the Game view, located on the bottom left of the Unity interface, as highlighted by the red circle in Figure 4-5.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.